<div class="wrapper">
    <div>
        <div class="box box-top">
            <!-- /.box-header -->
            <!-- form start -->
            <form id="returnJsonForm" role="form" action="${base}/admin/returnJson/save" method="post">
                <input type="hidden" name="id" value="${(returnJson.id)!}">
                <div class="box-body">
                            <div class="form-group">
                                <label for="hasMore">hasMore</label>
                                <input type="text" value="${(returnJson.hasMore)!}" class="form-control" name="hasMore" id="hasMore">
                            </div>

                            <div class="form-group">
                                <label for="offset">offset</label>
                                <input type="text" value="${(returnJson.offset)!}" class="form-control" name="offset" id="offset">
                            </div>

                            <div class="form-group">
                                <label for="count">count</label>
                                <input type="text" value="${(returnJson.count)!}" class="form-control" name="count" id="count">
                            </div>

                            <div class="form-group">
                                <label for="companies"></label>
                                <input type="text" value="${(returnJson.companies)!}" class="form-control" name="companies" id="companies">
                            </div>

                    <div class="box-footer">
                        <button type="button" onclick="$('#returnJsonForm').submit();" class="btn btn-primary">保存
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $("#returnJsonForm").validate({
            submitHandler:function(form){
                submitReturnJson();
            }
        });
    });
    function submitReturnJson(){
        HF.ajaxFormSubmit('returnJsonForm',function(result){
            alert("保存成功");
            document.location.reload();
        },function(e){ alert("保存失败");});
    }
</script>
